home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C/C++ Users Group Library 1996 July
/
C-C++ Users Group Library July 1996.iso
/
listings
/
v_08_08
/
8n08044b
< prev
next >
Wrap
Text File
|
1990-07-17
|
323b
|
24 lines
func(int type)
{
switch(type)
{
case 1:
/*** Do work for type code 1 ***/
return(SUCCESS);
case 2:
critical
{
/*** Do critical type 2 work ***/
}
return(SUCCESS);
default:
if(type > 5) return(ERROR);
/*** Do default work ***/
return(SUCCESS);
}
}